import { createStore } from "vuex"

import moduleCart from './cart.js'
import moduleUser from './user.js'
// 3. 创建 Store 的实例对象
const store = createStore({
  modules: {
      m_cart:moduleCart,
      m_user:moduleUser
    }
});

// 4. 向外共享 Store 的实例对象
export default store